// Write the player into the page (done this way to get around the Eolas bug)
// Updated for Flashback Pro, sra 13 July 2009
function WritePlayer(fileName, fileWidth, fileHeight) {

	var playerScript = 
		'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ' 
		+ 'width="' + fileWidth + '" ' 
		+ 'height="' + fileHeight + '">' 
		+ '<param name="movie" VALUE="' + fileName + '"> ' 
		+ '<param name="quality" VALUE="high"> ' 
		+ '<param name="bgcolor" VALUE="#FFFFFF"> ' 
		+ '<param name="flashVars" VALUE="showToolbar=true&topToolbar=true&showFullScreen=false&notScaleInFullScreen=false&autoHide=false&showAutoHide=true&showTimer=true&showTimeline=true&showNextButton=true&showPrevButton=true&showFBLogo=false&showVolumeBar=true&fps=4&str1=Created%20with%20BB%20FlashBack&str2=Visit%20www.bbflashback.com&str3=Hide&showPausedOverlay=true&pauseByClickingOnMovie=true&startingPlaybackMode=2&preloadPercent=0" >'
		+ '<embed src="' + fileName + '" quality="high" bgcolor="#FFFFFF" ' 
		+ 'width="' + fileWidth + '" height="' + fileHeight + '" ' 
		+ 'flashVars="showToolbar=true&topToolbar=true&showFullScreen=false&notScaleInFullScreen=false&autoHide=false&showAutoHide=true&showTimer=true&showTimeline=true&showNextButton=true&showPrevButton=true&showFBLogo=false&showVolumeBar=true&fps=4&str1=Created%20with%20BB%20FlashBack&str2=Visit%20www.bbflashback.com&str3=Hide&showPausedOverlay=true&pauseByClickingOnMovie=true&startingPlaybackMode=2&preloadPercent=0" '
		+ 'type="application/x-shockwave-flash" ' 
		+ 'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">' 
		+ '</embed></object>';
		
	document.write(playerScript);
}


